package demo1;

public class Animal {
    public String name;
    public void eat(){
          System.out.println("ok");
    }
}

class Dog extends Animal{
    public int age ;
    public void eat(){
        System.out.println(this.name+"吃狗粮....");
    }
    public void scream(){
        System.out.println("汪汪叫~~");
    }
}
